package com.monitor.entity.pojo.accesstoken;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * .
 *
 * @author Li Zhiyuan
 * @since 2020-11-20
 */
@Data
@TableName("t_access_token")
public class AccessToken implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    private String accessToken;
}
